<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/ajax/libs/datapicker/bootstrap-datetimepicker.min.css}" rel="stylesheet"/>
<body class="white-bg">
        <form class="form-horizontal m" id="form-transactionFlow-edit" th:object="${transactionFlow}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">手机号：</label>
				<div class="col-sm-8">
					<input id="mobile" name="mobile" th:field="*{mobile}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">账单类型 ：</label>
				<div class="col-sm-8">
				  <select name="billType" class="form-control m-b" th:with="type=${@dict.getType('bill_type')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{billType}" ></option>
	                </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">转出地址：</label>
				<div class="col-sm-8">
					<input id="turnOutWallet" name="turnOutWallet" th:field="*{turnOutWallet}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">接收地址：</label>
				<div class="col-sm-8">
					<input id="turnInWallet" name="turnInWallet" th:field="*{turnInWallet}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易金额：</label>
				<div class="col-sm-8">
					<input id="amount" name="amount" th:value="*{tAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易积分类型：</label>
				<div class="col-sm-8">
					 <select name="coinType" class="form-control m-b" th:with="type=${@dict.getType('coin_type')}">
									<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{coinType}"></option>
								</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收支方向：</label>
				<div class="col-sm-8">
				 <select name="direction" class="form-control m-b" th:with="type=${@dict.getType('direction')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{direction}" ></option>
	                </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易发生时间：</label>
				<div class="col-sm-8">
				 <div class="input-group date">
				  		<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input id="transTime" name="transTime" class="form-control" type="text"   th:value="${#dates.format(transactionFlow.transTime, 'yyyy-MM-dd HH:mm:ss')}">
				 </div>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易状态：</label>
				<div class="col-sm-8">
				     <select name="status" class="form-control m-b" th:with="type=${@dict.getType('trans_status')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}" ></option>
	                </select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易手续费：</label>
				<div class="col-sm-8">
					<input id="transFee" name="transFee" th:field="*{transFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
				<div class="col-sm-8">
				  <textarea id="remarks" name="remarks" class="form-control" >[[*{remarks}]]</textarea>
				</div>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script th:src="@{/ajax/libs/datapicker/bootstrap-datetimepicker.min.js}"></script>
    <script type="text/javascript">
    $(document).ready(function(){
   	 $(".input-group.date").datetimepicker({
     	   format: "yyyy-mm-dd hh:ii:ss",
     	   startDate: '2019-01-01 8:00:00',//开始年份
     	   language: 'zh-CN',
     	   initialDate: new Date(),
     	   autoclose: true
     	 });
   })
	</script>
</body>
</html>
